
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>登录-总后台</title>
<link rel="stylesheet" type="text/css" href="/static/login/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="/static/login/css/demo.css" />
<!--必要样式-->
<link rel="stylesheet" type="text/css" href="/static/login/css/component.css" />
<!--[if IE]>
<script src="js/html5.js"></script>
<![endif]-->
</head>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header">
					<canvas id="demo-canvas"></canvas>
					<div class="logo_box">
						<h3>欢迎你</h3>
						<form action="#" name="f" method="post">
							<div class="input_outer">
								<span class="u_user"></span>
								<input name="logname" id="username" class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入账户">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="logpass"  id="password"  class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码">
							</div>
							<div class="mb2"><a class="act-but submit" href="javascript:;" style="color: #FFFFFF">登录</a></div>
						</form>
					</div>
				</div>
			</div>
		</div><!-- /container -->
		<script src="/static/js/jquery-1.11.1.min.js"></script>
		<script src="/static/login/js/tweenlite.min.js"></script>
		<script src="/static/login/js/easepack.min.js"></script>
		<script src="/static/login/js/raf.js"></script>
		<script src="/static/login/js/demo-1.js"></script>
		<script src="/static/js/layer2.1/layer.js"></script>
		<script type="text/javascript">
			$(function(){
				$('.act-but').click(function(){
					  var username=$('#username').val();
						var password=$('#password').val();
						
						if(username==''){
							layer.msg('请输入帐号！');
							return;
						}
						if(password==''){
							layer.msg('请输入密码！');
							return;
						}
						
						$.post('/user/loginin', {
							username: username,
							password: password,
					 }, function(result) {
							if(result.code==0){
								layer.msg(result.message)
							}
							if(result.code==1){
								layer.msg(result.message)
								setTimeout('location.href="'+result.data+'";',1000)
								
							}
						}, "json");
				})
			})
		</script>
	</body>
</html>